#pragma once
#include "ro.h"
#include "image.h"
#include "pixeltransform.h"

class XDLL roConvert
{
public:
	static const uint Red = 0;
	static const uint Green = 1;
	static const uint Blue = 2;

	static const uint Hue = 0;
	static const uint Saturation = 1;
	static const uint Brightness = 2;

public:
	static roPreImage* RGB2HSV(roPreImage * source, bool rewrite = false);
	static roPreImage* HSV2RGB(roPreImage * source, bool rewrite = false);
	static roPreImage* RGB2HSL(roPreImage * source, bool rewrite = false);
	static roPreImage* HSL2RGB(roPreImage * source, bool rewrite = false);
};